﻿using System;
using System.Windows.Media.Media3D;
using HelixToolkit.Wpf;

namespace GameBoard
{
    public class MapExentionVisual : RectangleVisual3D, IVisual, ITerrainFeature
    {
        bool _belongsToMoveablePicture = false;
        public bool BelongsToMoveablePicture
        {
            get { return _belongsToMoveablePicture; }
        }
        public void PopulateVisualData(BaseVisualData theData)
        {
            _belongsToMoveablePicture = theData.BelongsToMoveablePicture;
            FactoryID = theData.FactoryID;

            var mapextdata = theData as MapExentionVisualData;
            Length = mapextdata.Length;
            Material = mapextdata.Material;
            Origin = mapextdata.Origin;
            Width = mapextdata.Width;
        }

        public bool IsSolid
        {
            get { return true; }
            set { }
        }

        public ModelVisual3D VisualElement
        {
            get { return this; }
        }

        public Guid FactoryID { get; set; }
    }
}